/*
 * Date.h
 *
 *  Created on: 2010-9-15
 *      Author: zhouuchu
 */

#ifndef DATE_H_
#define DATE_H_

static int DayList[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};

class Date {
public:
	Date();
	Date( const Date& other );
	Date(const int nDay, const int nMonth, const int nYear);
	virtual ~Date();
public:
	const Date & operator-( const int nDay );
	const int operator-( Date& other);
	const Date & operator+( const int nDay );
	const Date & operator=( const Date& other );
private:
	bool IsLeap();
	int DayInYear();
public:
	int m_nDay;
	int m_nMonth;
	int m_nYear;

};

#endif /* DATE_H_ */
